home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / Musique / Quod Libet / quodlibet-3.3.0-installer.exe / bin / quodlibet / plugins / playorder.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2014-12-31  |  3KB  |  78 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.7)
  3.  
  4. import quodlibet.qltk.playorder as quodlibet
  5.  
  6. class PlayOrderPlugin(quodlibet.qltk.playorder.Order):
  7.     '''Play order plugins define alternate play orders for
  8.     Quod Libet. They appear, when enabled, in the combo box
  9.     in the lower left of the main window, as well as in the
  10.     tray icon context menu.
  11.  
  12.     Play order plugins must define at least two methods, next
  13.     and previous.
  14.         def next(self, playlist, iter): ...
  15.         def previous(self, playlist, iter): ...
  16.  
  17.     \'playlist\' is a GTK+ ListStore containing at least an AudioFile as
  18.     the first element in each row (in the future there may be more
  19.     elements per row), and iter is the GtkTreeIter for the song that
  20.     just finished, if any (if the song is not in the list, this iter
  21.     will be None).
  22.  
  23.     They can also define \'display_name\' and \'accelerated_name\'
  24.     attributes which are used as the strings for display in the combo
  25.     box and menu; both default to PLUGIN_NAME.
  26.  
  27.     Finally, they can specify an integer \'priority\' to sort the list,
  28.     and a \'replaygain_profile\' list which is a list of Replay Gain
  29.     profile names that this mode should fall back to (e.g. a shuffle
  30.     mode should not use the \'album\' Replay Gain profile).
  31.  
  32.     There is also
  33.         def set(self, playlist, iter): ...
  34.     for when the user manually selects a song from the list. In this
  35.     case, iter is the song they selected, and playlist.current_iter is
  36.     the current iter, if any. If iter is provided and this function
  37.     returns None, the currently-playing song will not be ended.
  38.  
  39.     If explicit "next song" button presses should be handled
  40.     differently than reaching the end of a song, use:
  41.         def next_implicit(self, playlist, iter): ...
  42.         def next_explicit(self, playlist, iter): ...
  43.         def previous_explicit(self, playlist, iter): ...
  44.         def previous_implicit(self, playlist, iter): ...
  45.     There is also set_explicit, but no set_implicit.
  46.  
  47.     Finally, there is
  48.         def reset(self, playlist): ...
  49.     which is called when the playlist changes and state should be reset.
  50.  
  51.     '''
  52.     name = None
  53.     display_name = None
  54.     accelerated_name = None
  55.     priority = quodlibet.qltk.playorder.Order.priority
  56.  
  57.  
  58. class PlayOrderRememberedMixin(quodlibet.qltk.playorder.OrderRemembered):
  59.     name = None
  60.     display_name = None
  61.     accelerated_name = None
  62.     priority = quodlibet.qltk.playorder.Order.priority
  63.  
  64.  
  65. class PlayOrderInOrderMixin(quodlibet.qltk.playorder.OrderInOrder):
  66.     name = None
  67.     display_name = None
  68.     accelerated_name = None
  69.     priority = quodlibet.qltk.playorder.Order.priority
  70.  
  71.  
  72. class PlayOrderShuffleMixin(quodlibet.qltk.playorder.OrderShuffle):
  73.     name = None
  74.     display_name = None
  75.     accelerated_name = None
  76.     priority = quodlibet.qltk.playorder.Order.priority
  77.  
  78.